class Neuron < ActiveRecord::Base
  belongs_to :neuron_type

  def find_by_data_match new_word
    NeuronRelation.find_by_sql("SELECT * FROM neurons WHERE plperl_heuristic_data_match ( data  , '#{new_word}' )")
  end
end
